//
//  zJRequestManager.h
//  PinKe
//
//  Created by lanou on 15/12/22.
//  Copyright (c) 2015年 zj. All rights reserved.
//

#import <Foundation/Foundation.h>
typedef void(^Finish) (NSData *data);
typedef void(^Error) (NSError *error);
typedef NS_ENUM(NSInteger, RequsetType){
    POST,
    GET


};
@interface zJRequestManager : NSObject
+ (void)requestWithUrl:(NSString *)urlstring
               parmDic:(NSDictionary *)parmDic
                method:(RequsetType)method
       succeedWithData:(void(^)(NSData *data))block
       failedWithError:(void(^)(NSError *connectionError))error;
@end
